package com.hkemmm.shop.dao;

import com.hkemmm.shop.entity.Category;
import com.hkemmm.shop.entity.Goods;
import com.hkemmm.shop.entity.Goods_category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> getGoods(Integer number);

    List<Goods> getRelatedGoods(List<Category> list);

    List<Goods> getAllGoods(Integer shopId);

    int delGoods(@Param("id") Integer id,@Param("status") Integer status);
}